import java.util.Scanner;

public class Homework10 {
    public static void main(String[]args){
        Scanner in = new Scanner(System.in);
        System.out.println("输入是否是会员和购物金额");
        String b=in.next();
        int money = in.nextInt();
        if (b.equals("是会员")){
           if (money>=200){
               double money1=money*0.75;
               System.out.println("会员购物满200金额"+money1);
           }else {
               double money2=money*0.8;
               System.out.println("会员购物不满200金额"+money2);
           }
        }
        if (b.equals("不是会员")){
            if (money>=100){
                double money3=money*0.9;
                System.out.println("不是会员购物满100金额"+money3);
            }else {
                double money4=money;
                System.out.println("不是会员购物不满100金额"+money4);
            }
        }
    }
}
